package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.article.query.DestinationQuery;
import cn.wolfcode.luowowo.article.query.DestinationRecommedQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DestinationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Destination record);

    Destination selectByPrimaryKey(Long id);

    List<Destination> selectAll();

    int updateByPrimaryKey(Destination record);

    List<Destination> selectDestsByDeep(int deep);


    List<Destination> selectDestByIds(Long[] destIds);

    List<Destination> selectForList(DestinationQuery qo);


    List<Destination> selectSubDestParentId(Long parentId);

    void updateHotValue(@Param("id") Long id, @Param("hot") Long hot);

    String selectGeneralizeByByDestId(Long id);

    List<Destination> listByMonthIdAndThenmeId(DestinationRecommedQuery qo);

    List<Destination> selectDestParentId(Long id);

    List<Destination> listAll();

    List<Destination> selectByHotAndParentId(Long id);

    List<Destination> listByChinaId();

    List<Destination> listOverseasDest();

    List<Destination> listByThemeName(String themeName);
}